Skip to main content

mobileCanTrackLocation

Type

function

Summary

Returns true if the device can track the location using GPS, false otherwise.

Syntax

mobileCanTrackLocation()

Description

Use the mobileCanTrackLocation function to check whether the device has the necessary hardware support for tracking the location using GPS.

Examples

get mobileCanTrackLocation()
if mobileCanTrackLocation() is "true" then 
answer "The location can be tracked"
end if

command: mobileStopTrackingSensor, mobileStartTrackingSensor

function: mobileSensorReading, mobileCurrentLocation

message: trackingError, locationChanged

Compatibility and Support

Introduced

LiveCode 4.6.1

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?